﻿<template>
    <div>
        <h2>你好,欢迎来到Home路由组件</h2>
        <hr />
        <!-- 子路由的写法(没有命名路由) -->
        <router-link to="/home/news">News</router-link>
        <router-link to="/home/message">Message</router-link>
        <keep-alive include="News"><!--include:包含,你想缓存哪个路由组件-->
            <router-view></router-view>
        </keep-alive>
    </div>
</template>

<script>
    export default {
        name: 'Home',
        components:{},
    }
</script>

<style scoped>

</style>